﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Surface.Core;
using Microsoft.Surface.Core.Manipulations;

namespace Sublimation
{
    class EnergyRingSurf:EnergyRing
    {
        EnergyRingManipulator manipulator;
        public EnergyRingSurf(WorldPropertiesSurf worldproperties,Vector2 position):base(worldproperties,position){
            manipulator = new EnergyRingManipulator(position, worldproperties, this);
        }

        public bool belongs(Contact contact)
        {
            Rectangle zone1 = new Rectangle((int)position.X, (int)position.Y, BoundingRectangle.Width, BoundingRectangle.Height);
            Rectangle zone2 = new Rectangle((int)contact.X, (int)contact.Y, (int)contact.Bounds.Width, (int)contact.Bounds.Height);
            return zone1.Intersects(zone2);
        }
    }
}
